<?php
/**
 * Created by PhpStorm.
 * User: fengtian
 * Date: 15-4-3
 * Time: 上午10:24
 */
?>

<?php
if(isset($lists)){
    foreach($lists as $list):?>
        <tr>
            <td><?php echo $list['sku'] ?></td>
            <td><?php echo $list['sku_name'] ?></td>
            <td><?php echo $list['storage'] ?></td>
            <td><?php echo $list['qichu'] ?></td>
            <td><?php echo $list['benqiru'] ?></td>
            <td><?php echo $list['benqichu'] ?></td>
            <td><?php echo $list['hold'] ?></td>
            <td><?php echo $list['quantity'] ?>  </td>
            <td><?php echo $list['onsale_name'] ?>  </td>
            <td><?php echo $status[$list['status']]; ?></td>
            <td>
                <?php if($list['status']!=3){ ?>
                    <input type="button" class="btn btn-info" onclick="warning(this)" value="预警"/>
                <?php }elseif($list['status']==3){ ?>
                    <input type="button" class="btn btn-success" value="已紧急预警"/>
                <?php } ?>
                <input type="hidden" value="<?php echo $list['sku']; ?>"/>
                <input type="hidden" value="<?php echo $list['in_id']; ?>"/>
                <input type="hidden" value="<?php echo $list['quantity'] ?>"/>
            </td>
        </tr>
    <?php endforeach;
} ?>